﻿using Application.DTO;
using Application.DTO.Dictionary;
using Domain.Entity.Dictionary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IService.Dictionary
{
    public interface IDictionaryValueService:IBaseService<DictionaryValue>
    {
        /// <summary>
        /// 添加字典项
        /// </summary>
        /// <param name="dtos">字典项集合</param>
        /// <returns></returns>
        public Task<ResultDTO<string>> InsertDictionaryValues(List<DictionaryValuesDTO> dtos);
        /// <summary>
        /// 修改字典项
        /// </summary>
        /// <param name="dtos">字典项集合</param>
        /// <returns></returns>
        public Task<ResultDTO<string>> UpdateDictionaryValues(List<DictionaryValuesDTO> dtos);
        /// <summary>
        /// 删除字典项，采用逻辑删除
        /// </summary>
        /// <param name="ids">字典项的ID值集合</param>
        /// <returns></returns>
        public Task<ResultDTO<string>> SoftDeleteDictionaryValues(string ids);
        /// <summary>
        /// 查询字典项
        /// </summary>
        /// <param name="key">字典键ID</param>
        /// <returns></returns>
        public Task<ResultDTO<List<DictionaryValuesDTO>>> SearchDictionaryValues(int key);
    }
}
